import sys


def get_be(x):
    co = 0
    for i in x:
        if i == ':':
            return float(x[:co])
        co += 1


def get_af(x):
    co = 0
    for i in x:
        if i == ':':
            return x[co + 1:]
        co += 1


def search(x):
    try:
        fi = open('data', 'r')
    except IOError:
        print("无法打开文件")
        exit(1)
    li = fi.readline()
    while li != '-1.0:end\n':
        if get_be(li) == x:
            fi.close()
            return get_af(li)
            exit(0)
        if get_be(li) == (x * -1):
            fi.close()
            return '-' + get_af(li)
            exit(0)
        li = fi.readline()
    print('Not found ' + str(x))
    fi.close()
    return "找不到"
    exit(1)


if __name__ == '__main__':
    if len(sys.argv) != 2:
        print("格式错误！\n")
        exit(1)
    print(search(sys.argv[1]))
